package com.itboye.textileexpres.base;

import java.util.ArrayList;

import com.itboye.textileexpes.beans.ShopBeans;

public class ShoppingCartBean
{

	/** 失效 */
	public static final String GOOD_INVALID = "0";

	public static final String GOOD_VALID = "1";

	/** 购物车商品数量 */
	public static final String KEY_NUM = "num";
	/** 购物车规格ID */
	public static final String KEY_PRODUCT_ID = "product_id";

	/** 是否处于编辑状态 */
	private boolean isEditing;
	/** 组是否被选中 */
	private boolean isGroupSelected;

	/** 店铺名称 */
	private String merchantName;

	/** 店铺ID */
	private String merID;

	/** 是否失效列表 */
	private boolean isInvalidList;

	private boolean isAllGoodsInvalid;

	private ArrayList<Goods> goods;

	private ArrayList<ShopBeans> dispatch;

	public ArrayList<ShopBeans> getDispatch() {
		return dispatch;
	}

	public void setDispatch(ArrayList<ShopBeans> dispatch) {
		this.dispatch = dispatch;
	}

	public static String getGoodInvalid() {
		return GOOD_INVALID;
	}

	public static String getGoodValid() {
		return GOOD_VALID;
	}

	public static String getKeyNum() {
		return KEY_NUM;
	}

	public static String getKeyProductId() {
		return KEY_PRODUCT_ID;
	}

	public void setEditing(boolean isEditing) {
		this.isEditing = isEditing;
	}

	public void setGroupSelected(boolean isGroupSelected) {
		this.isGroupSelected = isGroupSelected;
	}

	public void setInvalidList(boolean isInvalidList) {
		this.isInvalidList = isInvalidList;
	}

	public void setAllGoodsInvalid(boolean isAllGoodsInvalid) {
		this.isAllGoodsInvalid = isAllGoodsInvalid;
	}

	public boolean isAllGoodsInvalid()
	{
		return isAllGoodsInvalid;
	}

	public void setIsAllGoodsInvalid(boolean isAllGoodsInvalid)
	{
		this.isAllGoodsInvalid = isAllGoodsInvalid;
	}

	public boolean isInvalidList()
	{
		return isInvalidList;
	}

	public void setIsInvalidList(boolean isInvalidList)
	{
		this.isInvalidList = isInvalidList;
	}

	public String getMerID()
	{
		return merID;
	}

	public void setMerID(String merID)
	{
		this.merID = merID;
	}

	public boolean isEditing()
	{
		return isEditing;
	}

	public boolean isGroupSelected()
	{
		return isGroupSelected;
	}

	public void setIsGroupSelected(boolean isGroupSelected)
	{
		this.isGroupSelected = isGroupSelected;
	}

	public ArrayList<Goods> getGoods()
	{
		return goods;
	}

	public void setGoods(ArrayList<Goods> goods)
	{
		this.goods = goods;
	}

/*	public ArrayList<Dispatch> getDispatch()
	{
		return dispatch;
	}

	public void setDispatch(ArrayList<Dispatch> dispatch)
	{
		this.dispatch = dispatch;
	}*/

	public String getMerchantName()
	{
		return merchantName;
	}

	public void setMerchantName(String merchantName)
	{
		this.merchantName = merchantName;
	}

	public void setIsEditing(boolean isEditing)
	{
		this.isEditing = isEditing;
	}

	/** 商品类，本地用变量应该加上标志 ' _local ' */
	public static class Goods
	{
		
		
		 
		private String expire_time;
		private String quantity;
		private String id;
		private String uid;
		private String create_time;
		private String update_time;
		private String store_id;
		private String p_id;
		private String sku_id;
		private String sku_desc;
		private String icon_url;
		private int count;
		private String name;
		private String express;
		private String template_id;
//		private String price;
		private String ori_price;
		private String psku_id;
		private String weight;
		private String tax_rate;
		private String group_id;
		private String package_id;
		private String item_status;
		private String onshelf;
		private String product_status;
		private String item_status_desc;
		
		public String getExpire_time() {
			return expire_time;
		}

		public void setExpire_time(String expire_time) {
			this.expire_time = expire_time;
		}

		public String getQuantity() {
			return quantity;
		}

		public void setQuantity(String quantity) {
			this.quantity = quantity;
		}

		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		public String getUid() {
			return uid;
		}

		public void setUid(String uid) {
			this.uid = uid;
		}

		public String getCreate_time() {
			return create_time;
		}

		public void setCreate_time(String create_time) {
			this.create_time = create_time;
		}

		public String getUpdate_time() {
			return update_time;
		}

		public void setUpdate_time(String update_time) {
			this.update_time = update_time;
		}

		public String getStore_id() {
			return store_id;
		}

		public void setStore_id(String store_id) {
			this.store_id = store_id;
		}

		public String getP_id() {
			return p_id;
		}

		public void setP_id(String p_id) {
			this.p_id = p_id;
		}

		public String getSku_id() {
			return sku_id;
		}

		public void setSku_id(String sku_id) {
			this.sku_id = sku_id;
		}

		public String getSku_desc() {
			return sku_desc;
		}

		public void setSku_desc(String sku_desc) {
			this.sku_desc = sku_desc;
		}

		public String getIcon_url() {
			return icon_url;
		}

		public void setIcon_url(String icon_url) {
			this.icon_url = icon_url;
		}

		public int getCount() {
			return count;
		}

		public void setCount(int count) {
			this.count = count;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getExpress() {
			return express;
		}

		public void setExpress(String express) {
			this.express = express;
		}

		public String getTemplate_id() {
			return template_id;
		}

		public void setTemplate_id(String template_id) {
			this.template_id = template_id;
		}

		public String getOri_price() {
			return ori_price;
		}

		public void setOri_price(String ori_price) {
			this.ori_price = ori_price;
		}

		public String getPsku_id() {
			return psku_id;
		}

		public void setPsku_id(String psku_id) {
			this.psku_id = psku_id;
		}

		public String getWeight() {
			return weight;
		}

		public void setWeight(String weight) {
			this.weight = weight;
		}

		public String getTax_rate() {
			return tax_rate;
		}

		public void setTax_rate(String tax_rate) {
			this.tax_rate = tax_rate;
		}

		public String getGroup_id() {
			return group_id;
		}

		public void setGroup_id(String group_id) {
			this.group_id = group_id;
		}

		public String getPackage_id() {
			return package_id;
		}

		public void setPackage_id(String package_id) {
			this.package_id = package_id;
		}

		public String getItem_status() {
			return item_status;
		}

		public void setItem_status(String item_status) {
			this.item_status = item_status;
		}

		public String getOnshelf() {
			return onshelf;
		}

		public void setOnshelf(String onshelf) {
			this.onshelf = onshelf;
		}

		public String getProduct_status() {
			return product_status;
		}

		public void setProduct_status(String product_status) {
			this.product_status = product_status;
		}

		public String getItem_status_desc() {
			return item_status_desc;
		}

		public void setItem_status_desc(String item_status_desc) {
			this.item_status_desc = item_status_desc;
		}

		public void setEditing(boolean isEditing) {
			this.isEditing = isEditing;
		}

		public void setChildSelected(boolean isChildSelected) {
			this.isChildSelected = isChildSelected;
		}

		public void setInvalidItem(boolean isInvalidItem) {
			this.isInvalidItem = isInvalidItem;
		}

		public void setBelongInvalidList(boolean isBelongInvalidList) {
			this.isBelongInvalidList = isBelongInvalidList;
		}

		public void setLastTempItem(boolean isLastTempItem) {
			this.isLastTempItem = isLastTempItem;
		}

		/** 数量 */
		private String number = "1";
		/** 商品ID */
		private String goodsID;
		/** 商品名称 */
		private String goodsName;
		/** 商品宣传图片 */
		private String goodsLogo;
		/** 商品规格 */
		private String pdtDesc;
		/** 市场价，原价 */
		private String mkPrice;
		/** 价格，当前价格 */
		private String price;
		/** 是否失效,0删除(失效),1正常 */
		private String status;
		/** 是否是编辑状态 */
		private boolean isEditing;
		/** 是否被选中 */
		private boolean isChildSelected;
		/** 规格ID */
		private String productID;

		/***/
		private String sellPloyID;

		/** 是否是失效列表的子项 */
		private boolean isInvalidItem;

		/** 是否属于 */
		private boolean isBelongInvalidList;

		/** 临时解决方案，为了避免尾部重绘两次，增加一个虚ITEM，不显示，但是没有子项的组项，会有一条黑线，所以需要做特殊处理 */
		private boolean isLastTempItem;

		public boolean isLastTempItem()
		{
			return isLastTempItem;
		}

		public void setIsLastTempItem(boolean isLastTempItem)
		{
			this.isLastTempItem = isLastTempItem;
		}

		public boolean isBelongInvalidList()
		{
			return isBelongInvalidList;
		}

		public void setIsBelongInvalidList(boolean isBelongInvalidList)
		{
			this.isBelongInvalidList = isBelongInvalidList;
		}

		public boolean isInvalidItem()
		{
			return isInvalidItem;
		}

		public void setIsInvalidItem(boolean isInvalidItem)
		{
			this.isInvalidItem = isInvalidItem;
		}

		public String getStatus()
		{
			return status;
		}

		public void setStatus(String status)
		{
			this.status = status;
		}

		public String getSellPloyID()
		{
			return sellPloyID;
		}

		public void setSellPloyID(String sellPloyID)
		{
			this.sellPloyID = sellPloyID;
		}

		public String getProductID()
		{
			return productID;
		}

		public void setProductID(String productID)
		{
			this.productID = productID;
		}

		public boolean isEditing()
		{
			return isEditing;
		}

		public void setIsEditing(boolean isEditing)
		{
			this.isEditing = isEditing;
		}

		public boolean isChildSelected()
		{
			return isChildSelected;
		}

		public void setIsChildSelected(boolean isChildSelected)
		{
			this.isChildSelected = isChildSelected;
		}

		public String getGoodsID()
		{
			return goodsID;
		}

		public void setGoodsID(String goodsID)
		{
			this.goodsID = goodsID;
		}

		public String getGoodsName()
		{
			return goodsName;
		}

		public void setGoodsName(String goodsName)
		{
			this.goodsName = goodsName;
		}

		public String getGoodsLogo()
		{
			return goodsLogo;
		}

		public void setGoodsLogo(String goodsLogo)
		{
			this.goodsLogo = goodsLogo;
		}

		public String getPdtDesc()
		{
			return pdtDesc;
		}

		public void setPdtDesc(String pdtDesc)
		{
			this.pdtDesc = pdtDesc;
		}

		public String getMkPrice()
		{
			return mkPrice;
		}

		public void setMkPrice(String mkPrice)
		{
			this.mkPrice = mkPrice;
		}

		public String getPrice()
		{
			return price;
		}

		public void setPrice(String price)
		{
			this.price = price;
		}

		public String getNumber()
		{
			return number;
		}

		public void setNumber(String number)
		{
			this.number = number;
		}

	}

	public static class Dispatch
	{

		/** 配送ID */
		private String dispatchID;
		/** 配送方式名称 */
		private String dispatchName;
		/** 配送方式（1邮寄，2到店提货，3送货上门） */
		private String dispatchType;
		/** 配送费用 */
		private String fee;
		/** 满多少免运费 */
		private String limitFee;

		public String getDispatchID()
		{
			return dispatchID;
		}

		public void setDispatchID(String dispatchID)
		{
			this.dispatchID = dispatchID;
		}

		public String getDispatchName()
		{
			return dispatchName;
		}

		public void setDispatchName(String dispatchName)
		{
			this.dispatchName = dispatchName;
		}

		public String getDispatchType()
		{
			return dispatchType;
		}

		public void setDispatchType(String dispatchType)
		{
			this.dispatchType = dispatchType;
		}

		public String getFee()
		{
			return fee;
		}

		public void setFee(String fee)
		{
			this.fee = fee;
		}

		public String getLimitFee()
		{
			return limitFee;
		}

		public void setLimitFee(String limitFee)
		{
			this.limitFee = limitFee;
		}
	}

}
